import request from '@/utils/request'

// 查询论坛-关注列表
export function listSubscribe(query) {
  return request({
    url: '/forum/subscribe/list',
    method: 'get',
    params: query
  })
}

// 查询论坛-关注详细
export function getSubscribe(wxUserId) {
  return request({
    url: '/forum/subscribe/' + wxUserId,
    method: 'get'
  })
}

// 新增论坛-关注
export function addSubscribe(data) {
  return request({
    url: '/forum/subscribe',
    method: 'post',
    data: data
  })
}

// 修改论坛-关注
export function updateSubscribe(data) {
  return request({
    url: '/forum/subscribe',
    method: 'put',
    data: data
  })
}

// 删除论坛-关注
export function delSubscribe(wxUserId) {
  return request({
    url: '/forum/subscribe/' + wxUserId,
    method: 'delete'
  })
}

// 导出论坛-关注
export function exportSubscribe(query) {
  return request({
    url: '/forum/subscribe/export',
    method: 'get',
    params: query
  })
}